# -*- coding = utf-8 -*-
from DllReader import USBCANDllReader

UDS_FRAME_TYPE = ["SF", "FF", "CF", "FC"]

class UDSFrame:
    def __init__(self):
        self.type = UDS_FRAME_TYPE[0]


class UDS:

    def __init__(self):
        self.usb_can = USBCANDllReader()
        self.default_word = 0x00


    def initCan(self):
        self.usb_can.openDevice()


    def closeCan(self):
        self.usb_can.closeDevice()


    def transmit(self, data):
        if len(data) > 8:
            return

        # self.usb_can.transmit()